<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/8/15
 * Time: 20:17
 */

namespace Zch\LishangLaravelShop\Wap\Shop\Http\Controllers;

use Illuminate\Http\Request;

class WechatMenuController extends Controller
{
    public function index()
    {
        $menus = [
            [
                'name' => '首页',
                'type' => 'view',
                'url' => 'http://loveonceyou.natapp1.cc/laravel/laravel58/public/wap/shop'
            ],
            [
                'name' => '关于我们',
                'type' => 'view',
                'url' => 'https://easywechat.com/about'
            ]
        ];

        return app('wechat.official_account')->menu->create($menus);
    }
}